package com.xncoding.netty.handler.tcp;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

public class byteTcpServerHandler  extends ChannelInboundHandlerAdapter  {
	
	 @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
//		 System.out.println("当前线程："+Thread.currentThread().getName());
//		System.out.println(JSON.toJSONString(msg));
	 	ctx.writeAndFlush(msg);
    }
	
}
